package chai.ningning.buffer;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 *
 */
public class BufferedOutputStreamTest {


    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("buffered.txt");
        BufferedOutputStream bos = new BufferedOutputStream(fos);

        byte[] bytes = {'a','b','c'};
        bos.write(bytes,0,3);


        bos.flush();
        bos.close();
        fos.close();
    }

}